<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<t:base type="jquery,easyui,tools,DatePicker"></t:base>
<div class="easyui-layout" fit="true">
  <div region="center" style="padding:0px;border:0px">
  <t:datagrid name="dictMajorList" checkbox="false" fitColumns="true"
  	 title="库存盘点计划" actionUrl="stockChecksController.do?datagrid" idField="id" fit="true" queryMode="group">
   <t:dgCol title="主键"  field="id"  hidden="true"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="盘点计划名称"  field="name"   query="false" queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="经办人"  field="processUsers"   query="false" queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="盘点日期"  field="checkDate"  formatter="yyyy-MM-dd" query="true" queryMode="group"  width="120"></t:dgCol>
   <t:dgCol title="操作" field="opt" width="100"></t:dgCol>
   <t:dgFunOpt  funname="editItemDetail({'编辑计划'},{'stockChecksController.do?goUpdate'},id,{'475'},{'270'})" title="编辑"  />
   <t:dgFunOpt  funname="showCheckItems(id)" title="查看库存明细"  />
   <%-- <t:dgFunOpt  funname="showCheckItems(id)" title="查看盘点总结"  /> --%>
   <t:dgDelOpt title="删除" url="stockChecksController.do?doDel&id={id}" />
   <t:dgToolBar title="新增盘点计划" icon="icon-add" url="stockChecksController.do?goAdd" funname="add" height="270" width="475"></t:dgToolBar>
   
  </t:datagrid>
  </div>
 </div>
 <script>
 $(document).ready(function(){
	//给时间控件加上样式
	$("#dictMajorListtb").find("input[name='checkDate_begin']").attr("class","Wdate").click(function(){WdatePicker({dateFmt:'yyyy-MM-dd'});});
	$("#dictMajorListtb").find("input[name='checkDate_end']").attr("class","Wdate").click(function(){WdatePicker({dateFmt:'yyyy-MM-dd'});});
 });
 
 	function showCheckItems(id){
 		window.location.href="stockChecksController.do?itemList&id="+id;
 	}
 </script>